home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2001 June / june_2001.iso / Html / CuteHtml / setup.exe / +CURRENT DATE WITH MONTH AND YEAR.JS < prev    next >
Encoding:
Text File  |  1999-09-03  |  1.4 KB  |  39 lines

  1. <script language="JavaScript">
  2. <!-- This Script And Over 400 Others Found At --!>
  3. <!--    Java City 2000 http://www.jc2k.com    --!>
  4. <!-- hide --
  5. /*
  6.    This script displays current month, date and year !
  7.    With this script, your webpage will always display current month, date and year,
  8.    no need to update the htm/html file every day, and it makes it look like you've updated your
  9.    page everyday.  Oh, yea, the color's are all messed up.  I used Teal, and the color turned red....
  10.    weird.
  11.    
  12.    Copyright (C) 1999 Scott Sparks (sparksscott@hotmail.com).
  13.    May be freely distributed, but please do not remove copyright notices.
  14.    No warranteed for usability for any apps are given.
  15. */
  16.  
  17. var now = new Date();
  18. var textout;
  19. var month = now.getMonth();
  20. var date = now.getDate();
  21. var year = now.getYear();
  22.  
  23. if (month==0) textout="January";
  24. if (month==1) textout="Febuary";
  25. if (month==2) textout="March";
  26. if (month==3) textout="April";
  27. if (month==4) textout="May";
  28. if (month==5) textout="June";
  29. if (month==6) textout="July";
  30. if (month==7) textout="August";
  31. if (month==8) textout="September";
  32. if (month==9) textout="October";
  33. if (month==10) textout="November";
  34. if (month==11) textout="December";
  35.  
  36. textout += " " + date + " '" + year;
  37. document.write ("<font size=5><font color=TEAL><strong>I last stumbled here on " + textout + "</strong></font>");
  38. // -- end hiding -->
  39. </script>